package com.carleasoft.mps.cms.business.article.bean.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 文章entity
 * @author yanghao
 * @date 2021-12-14 09:34
 * @project mps
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "c_cms_article")
public class AuthorityArticleEntity extends Model<AuthorityArticleEntity> {

    /**
     * id
     */
    @TableId(value = "id",type = IdType.AUTO)
    private String id;

    /**
     * 文章编码
     */
    @TableField(value = "ARTICLE_CODE")
    private String articleCode;

    /**
     * 栏目编码
     */
    @TableField(value = "CATEGORY_CODE")
    private String categoryCode;

    /**
     * 心里知识分类
     */
    @TableField(value = "TYPE")
    private String type;

    /**
     * 转载网站
     */
    @TableField(value = "REPRINT_WEBSITE")
    private String reprintWebsite;

    /**
     * 转载链接
     */
    @TableField(value = "REPRINT_HREF")
    private String reprintHref;

    /**
     * 跳转链接
     */
    @TableField(value = "JUMP_LINK")
    private String jumpLink;

    /**
     * 0-本站 1-外站
     */
    private String source;

    /**
     * 处理方式
     */
    private String processMode;

    /**
     * 置頂
     */
    private Boolean isTop;

    /**
     * 标签
     */
    private  String label;

    /**
     * 置頂時間
     */
    private LocalDateTime topTime;

    /**
     * 图片id
     */
    @TableField(value = "IMAGE_PATH")
    private String imagePath;

    /**
     * 发文机关
     */
    @TableField(value = "SOURCE_OFFICE")
    private String sourceOffice;

    /**
     * 印发日期
     */
    @TableField(value = "PRINT_DATE")
    private LocalDate printDate;

    /**
     * 排版样式
     */
    private Integer articleModel;

    /**
     *内容模型
     */
    @TableField(value = "CONTENT_MODEL")
    private Integer contentModel;

    /**
     * 发文字号
     */
    @TableField("POST_SHOW_NAME")
    private String postShowName;

    /**
     * 标题
     */
    @TableField("TITLE")
    private String title;

    /**
     * 站点编码
     */
    @TableField(value = "SITE_CODE")
    private String siteCode;

    /**
     * 权重
     */
    @TableField(value = "WEIGHT")
    private Integer weight;

    /**
     * 摘要
     */
    @TableField(value = "DIGEST")
    private String digest;

    /**
     * 文章状态
     */
    @TableField(value = "ARTICLE_STATUS")
    private Integer articleStatus;

    /**
     * 流程状态
     */
    @TableField(value = "FLOW_STATUS")
    private Integer flowStatus;

    /**
     * 发布人
     */
    @TableField(value = "ISSUE_BY")
    private String issueBy;

    /**
     * 发布时间
     */
    @TableField(value = "ISSUE_TIME")
    private LocalDateTime issueTime;

    /**
     * 1收藏 2-未收藏
     */
    private  Integer collector;

}


